package com.fourcitizens.playas.scrapper;

class Province {
	private String _name;
	private String _url;
	private String _subPath;
	
	public Province(String name, String url) {
		_name = name;
		_url = url;
		_subPath = _url.substring(Scrapper.BASE_URL.length(), _url.lastIndexOf('/') + 1);
	}
	
	public String getName () {
		return _name;
	}
	
	public String getUrl() {
		return _url;
	}
	
	public String getSubPath(){
		return _subPath;
	}
	
	public String toString() {
		return _name;
	}
	
	public String toExtendedString() {
		return toString() + " (" + _url + ")";
	}
}
